<template>
  message
  <div @click="toDetailFun">点击跳转详情</div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()

const toDetailFun = () => {
  router.push('/message-detail')
}
</script>
